feat(apollo_infra_utils): better cairo0 compiler checks#5921
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
f38a4b3 to
b461536
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 5 files reviewed, all discussions resolved (waiting on @Itay-Tsabary-Starkware)
crates/apollo_infra_utils/Cargo.toml line 30 at r1 (raw file):
assert-json-diff.workspace = true cached.workspace = true colored.workspace = true
this is s bugfix - cargo test -p apollo_infra_utils fails without these deps
Code quote:
assert-json-diff.workspace = true
cached.workspace = true
colored.workspace = true
Itay-Tsabary-Starkware
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 5 files reviewed, all discussions resolved (waiting on @dorimedini-starkware)
crates/apollo_infra_utils/Cargo.toml line 10 at r2 (raw file):
[features] testing = ["cached", "colored", "dep:assert-json-diff", "socket2", "toml"]
I checked the testing feature dependencies and noticed the inconsistent use of dep: syntax here.
What have we decided regarding this usage?
Code quote:
dep:
dorimedini-starkware
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 5 files reviewed, all discussions resolved (waiting on @dorimedini-starkware)
crates/apollo_infra_utils/Cargo.toml line 10 at r2 (raw file):
Previously, Itay-Tsabary-Starkware wrote…
I checked the
testingfeature dependencies and noticed the inconsistent use ofdep:syntax here.
What have we decided regarding this usage?
I don't think we decided anything
Itay-Tsabary-Starkware
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 5 files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)
crates/blockifier_test_utils/src/cairo_compile.rs line 6 at r2 (raw file):
use std::process::{Command, Output}; use apollo_infra_utils::cairo0_compiler::verify_cairo0_compiler_deps;
What's the motivation for having the compiler utilities part of the apollo_infra crate and not in the blockifier test utils crate? Are there other crates that intend to use it?
Code quote:
use apollo_infra_utils::cairo0_compiler::verify_cairo0_compiler_deps;
dorimedini-starkware
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 5 files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware and @Itay-Tsabary-Starkware)
crates/blockifier_test_utils/src/cairo_compile.rs line 6 at r2 (raw file):
Previously, Itay-Tsabary-Starkware wrote…
What's the motivation for having the compiler utilities part of the
apollo_infracrate and not in theblockifier test utilscrate? Are there other crates that intend to use it?
yes :)
Itay-Tsabary-Starkware
left a comment
There was a problem hiding this comment.
Reviewed 4 of 5 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware)
crates/apollo_infra_utils/Cargo.toml line 10 at r2 (raw file):
Previously, dorimedini-starkware wrote…
I don't think we decided anything
Consider removing the dep: then for consistency. Anyhow, not blocking.
ed9e2c1 to
e099557
Compare
b461536 to
c163a0d
Compare
e099557 to
bbedc2c
Compare
c163a0d to
83c2706
Compare
|
Benchmark movements: No major performance changes detected. |
a81aec8 to
3165ee8
Compare
6ed867b to
84ea915
Compare
3165ee8 to
761dfbf
Compare
761dfbf to
6bd0ed0
Compare
84ea915 to
af8f488
Compare
6bd0ed0 to
f74618c
Compare
af8f488 to
2bc129a
Compare
f74618c to
57b6dfc
Compare
2bc129a to
132fd48
Compare
57b6dfc to
85ce43a
Compare
132fd48 to
a343b0e
Compare
85ce43a to
6e5b341
Compare
a343b0e to
9a3edd3
Compare
6e5b341 to
0b00ce2
Compare
9a3edd3 to
a780f22
Compare
0b00ce2 to
5bf93a6
Compare
|
Benchmark movements: |
a780f22 to
400f179
Compare
5bf93a6 to
fd328a2
Compare
400f179 to
9477f04
Compare
fd328a2 to
94eb0ff
Compare
9477f04 to
7243c38
Compare
94eb0ff to
b9541ed
Compare
amosStarkware
left a comment
There was a problem hiding this comment.
Reviewed 4 of 5 files at r4, all commit messages.
Reviewable status: 4 of 5 files reviewed, 2 unresolved discussions (waiting on @Itay-Tsabary-Starkware and @TzahiTaub)
crates/apollo_infra_utils/src/cairo0_compiler.rs line 16 at r4 (raw file):
pub const STARKNET_COMPILE_DEPRECATED: &str = "starknet-compile-deprecated"; pub const CAIRO0_COMPILE: &str = "cairo-compile"; pub const EXPECTED_CAIRO0_VERSION: &str = "0.14.0a1";
why is it hardcoded here?
Code quote:
pub const EXPECTED_CAIRO0_VERSION: &str = "0.14.0a1";crates/apollo_infra_utils/src/cairo0_compiler.rs line 32 at r4 (raw file):
pub fn cairo0_compilers_correct_version() -> Result<(), Cairo0CompilerVersionError> { for compiler in [CAIRO0_COMPILE, STARKNET_COMPILE_DEPRECATED] {
why are there now two compilers?
Code quote:
for compiler in [CAIRO0_COMPILE, STARKNET_COMPILE_DEPRECATED] {
dorimedini-starkware
left a comment
There was a problem hiding this comment.
Reviewable status: 4 of 5 files reviewed, 2 unresolved discussions (waiting on @amosStarkware, @Itay-Tsabary-Starkware, and @TzahiTaub)
crates/apollo_infra_utils/src/cairo0_compiler.rs line 16 at r4 (raw file):
Previously, amosStarkware wrote…
why is it hardcoded here?
easier to reference it; it's tested for consistency with the pip requirements in test_cairo0_version_pip_requirements
crates/apollo_infra_utils/src/cairo0_compiler.rs line 32 at r4 (raw file):
Previously, amosStarkware wrote…
why are there now two compilers?
one for cairo0 code, and one for cairo0 starknet contracts. they are separate scripts
amosStarkware
left a comment
There was a problem hiding this comment.
Reviewed 1 of 5 files at r4, 2 of 2 files at r5, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @TzahiTaub)

No description provided.